package tt.dz.egobus.servicemanager.cycle;

import tt.dz.egobus.servicemanager.core.exception.BusinessException;

/**
 * @author Anson
 * @date 17-4-5
 * @name 应用初始化与结束执行流程
 * @since 1.0.4
 */
public interface AppCycleProcessor {

    /**
     * @author Anson
     * @date 17-4-5
     * @name 判断当前是否执行
     * @since 1.0.4
     */
    boolean isProcessor();

    /**
     * @author Anson
     * @date 17-4-5
     * @name 开始执行相关流程
     * @since 1.0.4
     */
    boolean processorInit() throws BusinessException;

    /**
     * @author Anson
     * @date 17-4-5
     * @name 结束执行相关流程
     * @since 1.0.4
     */
    boolean processorDestroyed() throws BusinessException;
}
